<%--
  Created by IntelliJ IDEA.
  User: stiofan
  Date: 2017/2/2
  Time: 21:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/common/tags.jsp" %>

<aos:html title="国土信息查询分析" base="http" lib="ext">
    <aos:body>
    </aos:body>
</aos:html>
<script type="text/javascript" src="/static/js/gridToExcel.js"></script>
<aos:onready>
    <aos:viewport layout="fit">

        <aos:formpanel layout="column" columnWidth="1" border="false" autoScroll="true">
            <aos:docked dock="top" columnWidth="1" layout="column" border="true" height="160">
                <aos:dockeditem text="执行查询" margin="0 5" columnWidth="0.1" icon="icon71.png"
                                onclick="queryGtdrxxByParams"/>
                <aos:dockeditem text="重置条件" margin="0 5" columnWidth="0.1" icon="icon72.png" onclick="resetCxtjForm"/>
                <aos:dockeditem text="结果导出" margin="0 5" columnWidth="0.1" icon="icon70.png"
                                onclick="grid2Excel(cxjgGrid,'查询结果')"/>
                <aos:panel columnWidth="1" layout="column">
                    <aos:formpanel id="cxtjForm" layout="column" columnWidth="1">
                        <aos:textfield id="tdzdh" name="tdzdh" fieldLabel="土地宗地号" columnWidth="0.25"/>
                        <aos:textfield id="tdsyqr" name="tdsyqr" fieldLabel="土地使用权人" columnWidth="0.25"/>
                        <aos:textfield id="tdzsbh" name="tdzsbh" fieldLabel="土地证书编号" columnWidth="0.25"/>
                        <aos:datefield id="tdsyqqsrq" name="tdsyqqsrq" fieldLabel="使用权起始日期" columnWidth="0.25"/>
                        <aos:datefield id="tdsyqzzrq" name="tdsyqzzrq" fieldLabel="使用权终止日期" columnWidth="0.25"/>
                        <aos:datefield id="sjcjrqqsrq" name="sjcjrqqsrq" fieldLabel="采集起始日期" columnWidth="0.25"/>
                        <aos:datefield id="sjcjrqzzrq" name="sjcjrqzzrq" fieldLabel="采集终止日期" columnWidth="0.25"/>
                        <aos:textfield id="tdmjq" name="tdmjq" fieldLabel="土地面积起" columnWidth="0.25"/>
                        <aos:textfield id="tdmjz" name="tdmjz" fieldLabel="土地面积止" columnWidth="0.25"/>
                        <aos:textfield id="tdxz" name="tdxz" fieldLabel="土地性质" columnWidth="0.25"/>
                        <aos:textfield id="tdyt" name="tdyt" fieldLabel="土地用途" columnWidth="0.25"/>
                        <aos:textfield id="tdyzq" name="tdyzq" fieldLabel="土地原值起" columnWidth="0.25"/>
                        <aos:textfield id="tdyzz" name="tdyzz" fieldLabel="土地原值止" columnWidth="0.25"/>
                        <%-- <aos:combobox id="zgswjgDm" name="zgswjgDm" fieldLabel="主管税务机关" columnWidth="0.25"
                                      url="fgcjxxbdfxService.queryZgswjgDmByHttpModel"
                                      onselect="queryZgswskfjDmByZgswjgDm" star="true" allowBlank="false"/>
                        <aos:combobox id="zgswskfjDm" name="zgswskfjDm" fieldLabel="主管税务科所" columnWidth="0.25"
                                      url="fgcjxxbdfxService.queryZgswskfjDmByZgswjgDm"
                                      onselect="querySsglyDmByZgswskfjDm" star="true" allowBlank="false"/>
                        <aos:combobox id="ssglyDm" name="ssglyDm" fieldLabel="税收管理员" columnWidth="0.25"
                                      url="fgcjxxbdfxService.querySsglyDmByZgswskfjDm" star="true" allowBlank="false"/> --%>
                    </aos:formpanel>
                </aos:panel>
            </aos:docked>
            <aos:gridpanel id="cxjgGrid" layout="fit" forceFit="true" columnWidth="1.5" autoScroll="true"
                           hidePagebar="true"
                           url="gtxxcxfxService.queryGtdrxxByParams" height="500" columnLines="true">
                <aos:column dataIndex="tdzdh" header="土地宗地号" width="0.2" align="center"/>
                <aos:column dataIndex="tdsyqr" header="土地使用权人" width="0.2" align="center"/>
                <aos:column dataIndex="tdmj" header="土地面积" width="0.2" align="center" type="number" format="0.00" defaultValue="0"/>
                <aos:column dataIndex="tdxz" header="土地性质" width="0.2" align="center"/>
                <aos:column dataIndex="tdyt" header="土地用途" width="0.2" align="center"/>
                <aos:column dataIndex="tdyz" header="土地原值" width="0.2" align="center" type="number" format="0.00" defaultValue="0"/>
                <aos:column dataIndex="tdzldz" header="坐落地址" width="0.2" align="center"/>
                <aos:column dataIndex="tdsyqZsbh" header="证书编号" width="0.2" align="center"/>
                <aos:column dataIndex="tdsyqQsrq" header="土地使用权起始日期" width="0.2" align="center" type="date" format="Y-m-d"/>
                <aos:column dataIndex="tdsyqZzrq" header="土地使用权终止日期" width="0.2" align="center" type="date" format="Y-m-d"/>
                <aos:column dataIndex="sjcjrqQsrq" header="数据采集起始日期" width="0.2" align="center" type="date" format="Y-m-d"/>
                <aos:column dataIndex="sjcjrqZzrq" header="数据采集终止日期" width="0.2" align="center" type="date" format="Y-m-d"/>
                <aos:column dataIndex="tdsyqlxmc" header="土地使用权类型名称" width="0.2" align="center"/>
            </aos:gridpanel>
        </aos:formpanel>
    </aos:viewport>
    <script type="text/javascript">
        function queryZgswskfjDmByZgswjgDm() {
            var params = {
                zgswjgDm: Ext.getCmp("zgswjgDm").getValue()
            };
            zgswskfjDm_store.getProxy().extraParams = params;
            zgswskfjDm_store.reload();
        }
        function querySsglyDmByZgswskfjDm() {
            var params = {
                zgswskfjDm: Ext.getCmp("zgswskfjDm").getValue()
            };
            ssglyDm_store.getProxy().extraParams = params;
            ssglyDm_store.reload();
        }
        function queryGtdrxxByParams() {
//             if(AOS.valid(cxtjForm)){            	
//              cxjgGrid_store.getProxy().extraParams = Ext.getCmp("cxtjForm").getValues();
//                 cxjgGrid_store.getProxy().extraParams = params;
//                 cxjgGrid_store.reload();
//             }
        	/*   var params = {
        			tdzdh: Ext.getCmp("tdzdh").getValue(),
        			tdsyqr: Ext.getCmp("tdsyqr").getValue(),
        			tdsyqZsbh: Ext.getCmp("tdzsbh").getValue(),
        			tdsyq_qsrq: Ext.getCmp("tdsyq_qsrq").getValue(),    
        			tdsyq_zzrq: Ext.getCmp("tdsyq_zzrq").getValue(),
        			tdsyqZsbh: Ext.getCmp("tdzsbh").getValue(),
        			tdsyqZsbh: Ext.getCmp("tdzsbh").getValue(),
        			tdsyqZsbh: Ext.getCmp("tdzsbh").getValue(),
        			tdsyqZsbh: Ext.getCmp("tdzsbh").getValue(),
        			tdsyqZsbh: Ext.getCmp("tdzsbh").getValue(),
        			tdsyqZsbh: Ext.getCmp("tdzsbh").getValue(),
                };  */
        	cxjgGrid_store.getProxy().extraParams = Ext.getCmp
        	("cxtjForm").getValues();
            cxjgGrid_store.reload();
        	
        }
        function resetCxtjForm() {
            AOS.reset(cxtjForm);
        }
    </script>
</aos:onready>